module.exports = {
  presets: [
    ["@vue/cli-plugin-babel/preset", { useBuiltIns: "entry" }],
    [
      "@babel/preset-env",
      {
        targets: { browsers: ["last 2 versions", "not ie <= 10"] },
      },
    ],
  ],
  plugins: [
    "@babel/plugin-proposal-optional-chaining", //可选链语法兼容
  ],
};
